package com.hk.A;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
public class AConfig {


    @Bean
    @Profile("Do")
    public Name getName(){
        return new Name("DO");
    }

    @Bean
    @Profile("Jiang")
    public Name getNameA(){
        return new Name("Jiang");
    }


}
